package com.ydx.meituan.exception;

/**
 * Description:http请求异常错误码
 */
public enum RequestError {
    REQUEST_ERROR_TIME_OUT(1, "TIME_OUT", "超时"),
    REQUEST_ERROR_FAIL(2, "FAIL", "服务异常"),
    REQUEST_ERROR_UNKNOWN_ERROR(3, "UNKOWN", "未知错误"),
    REQUEST_ERROR_PARAMS_ERROR(1000, "PARAM_ERROR ", "参数错误"),
    REQUEST_ERROR_DATA_NOT_EXIST(1001, "DATA_NOT_EXIST ", "数据不存在"),
    REQUEST_ERROR_AUTH_ERROR(1002, "AUTH_ERROR", "鉴权失败"),
    REQUEST_ERROR_NOT_SUPPORT_CITY(2000, "NOT_SUPPORT_CITY", "当前城市不支持"),
    REQUEST_ERROR_INVALID_ORDER(2001, "INVALID_ORDER", "无效订单号"),
    ;

    private int result;
    private String message;
    private String description;

    RequestError(int code, String message, String description) {
        this.result = code;
        this.message = message;
        this.description = description;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
